//   {
//     id:'r0000001',
//     title:'<HarmonyOS第一课>运行Hello World',
//     brief:'通过本章节的学习，您可以安装DevEco Studio开发工具，运行第一个应用',
//     headerSrc:'https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/harmonyos-path1.png?token=e0344a82-a2c4-4988-bb27-47bbda67ae10',
//     type:1,//资源类型,
//     webUrl:'https://fly.harmonyos-developer.top/',// 资源地址
//     publishDate:'2023-06-05 19:20',
//     topics:'001,003',
//     viewsCount:1000,
//     collectionCount:99,
//     likesCount:688,
//     tag:1,
//     bannerSrc:'',
//     mediaSrc:'',
//     isLiked:false,
//     isCollected:false
//   },
class ResourceResp {
    constructor(id, title, brief, headerImageUrl, type, webUrl, publishDate, topics, viewsCount,
                collectionCount, likesCount, tag, bannerSrc, mediaSrc, isLiked, isCollected,isViewed) {
        this.id = id;
        this.title = title;
        this.brief = brief;
        this.headerImageUrl = headerImageUrl;
        this.type = type;
        this.webUrl = webUrl;
        this.publishDate = publishDate;
        this.topics = topics;
        this.viewsCount = viewsCount;
        this.collectionCount = collectionCount;
        this.likesCount = likesCount;
        this.tag = tag;
        this.bannerSrc = bannerSrc;
        this.mediaSrc = mediaSrc;
        this.isLiked = isLiked;
        this.isCollected = isCollected;
        this.isViewed = isViewed;
    }
}

module.exports = { ResourceResp }